package gizwits.supor.way;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import gizwits.kit.Address;
import gizwits.kit.HttpKit;

public class register {
	public static final String uri = "/api/user/register";
	
	public static void main(String[] args) {
		
		run("15817038288@163.com", "luobinjie", "4115b44d9dde4981ac268a9df3440dc7");
		
	}
	
	public static JSONObject run(String email, String password, String code) {
		Map<String, Object> params = new HashMap<>();
		params.put("email", email);
		params.put("password", password);
		params.put("code", code);
		String result = HttpKit.post(Address.supor+uri, params);
		return JSONObject.parseObject(result);
	}
}
